package ru.spbu.math.android.cbrf.dataprovider.cbrf;

import java.util.HashMap;
import java.util.Map;


/**
 * Class for keeping urls for CBRF
 * @author  Svetlana Zemlyanskaya
 */

public class CbrfUrlIdStore {

    private static CbrfUrlIdStore instance = new CbrfUrlIdStore();
    private static Map<String,String> urlIdMap;


    /**
     * Get DataBaseUrlId List from DataBaseUrlIdStore
     *
     * @return Rate code and its urlId
     */
    public Map<String, String> getUrlIdMap() {
        return urlIdMap;
    }


    protected CbrfUrlIdStore() {
    	urlIdMap = new HashMap<String, String>();
    	urlIdMap.put("GBP", "R01035");
    	urlIdMap.put("BYR", "R01090");
    	urlIdMap.put("EUR", "R01239");
    	urlIdMap.put("USD", "R01235");
    	urlIdMap.put("AUD", "R01010");
    	urlIdMap.put("DKK", "R01215");
    	urlIdMap.put("ISK", "R01310");
    	urlIdMap.put("KZT", "R01335");
    	urlIdMap.put("CAD", "R01350");
    	urlIdMap.put("CNY", "R01375");
    	urlIdMap.put("NOK", "R01535");   	
    	urlIdMap.put("XDR", "R01589");
    	urlIdMap.put("SGD", "R01625");
    	urlIdMap.put("TRY", "R01700J");
    	urlIdMap.put("UAH", "R01720");
    	urlIdMap.put("SEK", "R01770");
    	urlIdMap.put("CHF", "R01775");
    	urlIdMap.put("JPY", "R01820");
    }

    /**
     * Get DataBaseUrlIdStore
     *
     * @return DataBaseUrlIdStore
     */
    public static CbrfUrlIdStore getInstance() {
        return instance;
    }
}


